#!/usr/bin/pyhton3
#-*- coding=utf-8 -*-

import yaml
import pystache

CONFIG_FILE = 'config.yaml'

renderer = pystache.Renderer()

print(pystache.render('Hey {{#who}}{{.}}!{{/who}}', {'who': ['1',2,4,3], 'port': 2200}))
print(pystache.render('Hey {{#who}}{{a}}! {{b}}{{/who}}', {'who': [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}], 'port': 2200}))
print(renderer.render_path('example.mustache', {'who': ['1',2,4,3], 'port': 2200}))
